package sudroid.android.app;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import sudroid.AssertUtil;

public class Media
{
  public static Intent getPlayMP3Intent(Uri paramUri)
  {
    AssertUtil.checkNull(paramUri);
    Intent localIntent1 = new Intent("android.intent.action.VIEW", paramUri);
    Intent localIntent2 = localIntent1.setType("audio/mp3");
    return localIntent1;
  }

  public static Intent getViewImageIntent(Uri paramUri)
  {
    AssertUtil.checkNull(paramUri);
    Intent localIntent1 = new Intent("android.intent.action.VIEW");
    Intent localIntent2 = localIntent1.setDataAndType(paramUri, "image/jpeg");
    return localIntent1;
  }

  public static void playMP3(Context paramContext, Uri paramUri)
  {
    AssertUtil.checkNull(paramContext);
    AssertUtil.checkNull(paramUri);
    Intent localIntent1 = getPlayMP3Intent(paramUri);
    if (!(paramContext instanceof Activity))
      Intent localIntent2 = localIntent1.setFlags(268435456);
    paramContext.startActivity(localIntent1);
  }

  public static void scanning(Context paramContext, Uri paramUri)
  {
    Intent localIntent1 = new Intent("android.intent.action.MEDIA_SCANNER_SCAN_FILE");
    Intent localIntent2 = localIntent1.setData(paramUri);
    paramContext.sendBroadcast(localIntent1);
  }

  public static void viewImage(Context paramContext, Uri paramUri)
  {
    AssertUtil.checkNull(paramContext);
    AssertUtil.checkNull(paramUri);
    Intent localIntent1 = getViewImageIntent(paramUri);
    if (!(paramContext instanceof Activity))
      Intent localIntent2 = localIntent1.setFlags(268435456);
    paramContext.startActivity(localIntent1);
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.android.app.Media
 * JD-Core Version:    0.6.0
 */